﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RED_NET_Core.Entity
{
    public class PhotoClass
    {
        #region [Private member]

        private int _photoId;
        private int _photoOfAlbumId;
        private string _photoName;
        private string _photoContent;
        private string _photoUrl;
        private DateTime _photoAddTime;
        private DateTime _photoUpdateTime;

        #endregion

        #region [Properties Of Photo]

        public int PhotoId
        {
            get{ return _photoId; }
            set{ _photoId = value; }
        }

        public int PhotoOfAlbumId
        {
            get { return _photoOfAlbumId; }
            set { _photoOfAlbumId = value; }
        }

        public string PhotoName
        {
            get { return _photoName; }
            set { _photoName = value; }
        }

        public string PhotoContent
        {
            get { return _photoContent; }
            set { _photoContent = value; }
        }

        public string PhotoUrl
        {
            get { return _photoUrl; }
            set { _photoUrl = value; }
        }

        public DateTime PhotoAddTime
        {
            get { return _photoAddTime; }
            set { _photoAddTime = value; }
        }

        public DateTime PhotoUpdateTime
        {
            get { return _photoUpdateTime; }
            set { _photoUpdateTime = value; }
        }

        #endregion

        #region [Construct Of Photo]

        /// <summary>
        /// 空构造函数
        /// </summary>
        public PhotoClass() { }

        /// <summary>
        /// 完整的照片构造函数
        /// </summary>
        /// <param name="photoid"></param>
        /// <param name="photoofalbumid"></param>
        /// <param name="photoname"></param>
        /// <param name="photocontent"></param>
        /// <param name="photourl"></param>
        /// <param name="photoaddtime"></param>
        /// <param name="photoupdatetime"></param>
        public PhotoClass(int photoid,int photoofalbumid, string photoname,string photocontent,string photourl,
            DateTime photoaddtime,DateTime photoupdatetime)
        {
            PhotoId = photoid;
            PhotoOfAlbumId = photoofalbumid;
            PhotoName = photoname;
            PhotoContent = photocontent;
            PhotoUrl = photourl;
            PhotoAddTime = photoaddtime;
            PhotoUpdateTime = photoupdatetime;
        }

        #endregion
    }
}
